import java.util.ArrayList;

import cars.*;
import cars.entities.*;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        List<Cars> carList = new ArrayList<Cars>();
        carList.add(new EntityXIAOMI());
        carList.add(new EntityAITO());
        carList.add(new EntityTesla());

        for (Cars currentCar : carList){
            System.out.println(currentCar.showCars());
        }
    }
}